<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">

		<script src="js/jquery.min.js"></script>
		<script type="text/javascript">
			$(function(){
				var auth = "mmn.*.*.abc";
				var param = "mmn.aa.sa.abc";
				var str = "";
				for(var i=0; i<auth.length; i++){
					var char = auth.charAt(i);
					if(char == "."){
						str += "\\.";
					}else if(char == "*"){
						str += "\\w+";
					}else{
						str += char;
					}
				}
				var regExp = new RegExp(str);
				console.log("str:", str, "param: ", param);
				console.log("是否匹配：", regExp.test(param));
			});
		</script>
	</head>


	<body>
		<select class="isSelect147" onchange="changeType(this.value);" name="type">
			<option value="4">画面权限</option>
			<option value="5" selected="selected">确认报警操作</option>
			<option value="6">设备变量控制</option>
			<option value="7">自定义</option>
		</select>
		664783182905
	</body>

</html>